using LanguageExt.Traits;
namespace LanguageExt;

public static partial class SemigroupKExtensions
{
    extension<F, A>(K<F, A> _) 
        where F : SemigroupK<F>
    {
        /// <summary>
        /// Semigroup combine operator: an associative binary operation.
        /// </summary>
        /// <param name="lhs">Left-hand side operand</param>
        /// <param name="rhs">Right-hand side operand</param>
        /// <returns></returns>
        public static K<F, A> operator +(K<F, A> lhs, K<F, A> rhs) =>
            lhs.Combine(rhs);
    }
}
